package com.my.netty.optimize.message;

import java.util.concurrent.atomic.AtomicInteger;

public abstract class SequenceIdGenerator {

    private static final AtomicInteger ATOMIC_INTEGER = new AtomicInteger(0);

    public static int nextId() {
        return ATOMIC_INTEGER.incrementAndGet();
    }
}
